package com.ruoyi.order.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;

//import com.ruoyi.order.api.factory.RemoteCfOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletResponse;

@FeignClient(contextId = "remoteCfOrderService", value = ServiceNameConstants.ORDER_SERVICE)
public interface RemoteCfOrderService {

    @GetMapping("/order/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    @GetMapping(value = "/image/{id}")
    public AjaxResult getInfo1(@PathVariable("id") Long id);

}
